<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link type="text/css" rel="stylesheet" href="http://localhost/company01/static/css/base.css"/>
            <script type='text/javascript' src='http://localhost/company01/HD/org/jquery-1.7.2.min.js'></script>
            <script type="text/javascript" src="<?php echo "http://localhost/company01/hdcms/admin/tpl/public/js/selecttemplate.js";?>"></script>
    </head>
    <body style="padding:10px;">
        <table class="table1">
            <thead>
                <tr>
                    <td>文件名</td>
                    <td width="30">类型</td>
                    <td width="160">大小</td>
                    <td width="200">修改时间</td>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($files)){$listCount = count($files);$list_id=0;?><?php foreach($files as $key=>$v){?>
                    <tr>
                        <td><a href="javascript:void(0);" file="<?php echo trim(str_replace($tplpath,"",$v['path']),"/");?>" tplinput="<?php echo $_GET['tplinput'];?>" class="file"><?php echo $v['name'];?></td>
                        <td width="30"><?php if($v['type']=='dir'){?>目录<?php  }else{ ?>文件<?php }?></td>
                        <td width="160"><?php echo get_size($v['filesize']);?></td>
                        <td width="200"><?php echo date("Y-m-d h:i:s",$v['filemtime']);?></td>
                    </tr>
                <?php $list_id+=1;?><?php }?><?php }?>
            </tbody>  
        </table>
		
		
		
		
		
		
		
		

    </body>
</html>
